home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / Word-Safari.swf / scripts / DefineButton2_188 / BUTTONCONDACTION on(release).as
Text File  |  2008-02-25  |  659b  |  38 lines

  1. on(release){
  2.    _root.difficulty = "medium";
  3.    _root.gogogo = true;
  4.    tellTarget(_root)
  5.    {
  6.       stopAllSounds();
  7.       theWind.start(0,999);
  8.       if(myWordA != "")
  9.       {
  10.          nextFrame();
  11.       }
  12.       else if(myWordB != "")
  13.       {
  14.          gotoAndPlay(9);
  15.       }
  16.       else if(myWordC != "")
  17.       {
  18.          gotoAndPlay(11);
  19.       }
  20.       else if(myWordD != "")
  21.       {
  22.          gotoAndPlay(15);
  23.       }
  24.       else if(myWordE != "")
  25.       {
  26.          gotoAndPlay(18);
  27.       }
  28.       else if(myWordF != "")
  29.       {
  30.          gotoAndPlay(21);
  31.       }
  32.       else
  33.       {
  34.          gotoAndPlay(24);
  35.       }
  36.    }
  37. }
  38.